﻿#ifndef DATRAY_H
#define DATRAY_H

#include "DAConfigDialog.h"

#include <QObject>
#include <QWidget>
#include <QSystemTrayIcon>
#include <QMenu>
#include <QEvent>
class DATray : public QSystemTrayIcon
{
    Q_OBJECT
public:
    explicit DATray(QWidget *parent);
private:
    QMenu *trayMenu;
    DAConfigDialog *setDialog;
    QWidget *Pobj;
    void onIconActivated(QSystemTrayIcon::ActivationReason reason);
    bool event(QEvent *event);
signals:
    void ShowMain();
};

#endif // DATRAY_H
